// Copyright 2008 Senary
// See credits.txt for details.

// This file is part of Omega VII.

// Omega VII is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Omega VII is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Omega VII.  If not, see <http://www.gnu.org/licenses/>.

#define WIN32_LEAN_AND_MEAN		
#include <windows.h>
#include <utility>

// Include the engine data types, variables, and functions
#include "sdk_engine/adll.h"
#include <cstdlib>
#include "GameManager.h"
#include "UIManager.h"
#include "Stardust.h"
#include "Planet.h"

using namespace std;

Vector unitVector(1, 1, 1);

int APIENTRY WinMain(HINSTANCE hInstance,	// application instance handle
                     HINSTANCE hPrevInstance, // always zero
                     LPTSTR    lpCmdLine,	// application command line
                     int       nCmdShow)	// window flags
{
	GameManager* gm = GameManager::getInstance();
	if (! gm->initEngine()) {
		return 1;
	}

	gm->getLevel().initialize("level3.wmb");
	Stardust s;
	gm->gameLoop();


	//gm->addPlanet(new Planet(PT_OPA_QUARTUS), ent_create("earth.mdl", ::vector(_VAR(0),_VAR(0),_VAR(0)), NULL));

	return 0;
}